local ganggenier__spear_skill = fk.CreateSkill {

  name = "ganggenier__spear_skill",
  attached_equip = "ganggenier__spear",

  tags = {  },

}



ganggenier__spear_skill:addEffect("viewas", {
  name = "ganggenier__spear_skill",
  prompt = "#ganggenier__spear_skill",
  pattern = "slash",
  card_filter = function(self, player, to_select, selected)
    if #selected == 2 then return false end
    local c = Fk:cloneCard("danmu__slash")
    return (Fk.currentResponsePattern == nil and c.skill:canUse(player, c)) or
        (Fk.currentResponsePattern and Exppattern:Parse(Fk.currentResponsePattern):match(c))
  end,
  view_as = function(self, player,cards)
    if #cards ~= 2 then
      return nil
    end
    local c = Fk:cloneCard("danmu__slash")
    c.skillName = "ganggenier__spear"
    c:addSubcards(cards)
    return c
  end,
})

return ganggenier__spear_skill